package com.ruoyi.common.core.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 无验证码登录对象
 * 
 * @author ruoyi
 */
@ApiModel(value = "无验证码登录对象", description = "用户登录请求参数（无验证码）")
public class LoginBodyWithoutCaptcha
{
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true, example = "admin", notes = "用户名长度必须在2到20个字符之间")
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "密码", required = true, example = "admin123", notes = "密码长度必须在5到20个字符之间")
    private String password;

    /**
     * 是否自动登录
     */
    @ApiModelProperty(value = "是否自动登录", required = true, example = "0", notes = "0表示不自动登录（token过期时间8小时），1表示自动登录（token过期时间24小时）")
    private Integer isAutoLogin;

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public Integer getIsAutoLogin()
    {
        return isAutoLogin;
    }

    public void setIsAutoLogin(Integer isAutoLogin)
    {
        this.isAutoLogin = isAutoLogin;
    }
}